﻿using System;
using System.Threading.Tasks;
using Microsoft.Owin;
using Owin;
using OwinTest.Middleware;
using System.Web.Http;
[assembly: OwinStartup(typeof(OwinTest.Startup))]

namespace OwinTest
{
    public class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            //app.Use<Test1>();
            //app.Use<Test2>();
            HttpConfiguration config = new HttpConfiguration();
            config.MapHttpAttributeRoutes();
            config.Routes.MapHttpRoute(name:"default", routeTemplate:"api/{controller}",defaults:new { controller="Test"});
            app.UseWebApi(config);
        }
    }
}
